---
title: A2A
description: Expose your Agno Agent via the A2A protocol
---

Google's [Agent-to-Agent Protocol (A2A)](https://a2a-protocol.org/latest/topics/what-is-a2a/) aims at creating a standard way for Agents to communicate with each other.

Agno integrates seamlessly with A2A, allowing you to expose your Agno Agent and Teams in a A2A compatible way.

This is done with our `A2A` interface, which you can use with our [AgentOS](/agent-os/introduction) runtime.

## Setup

You just need to set `a2a_interface=True` when creating your `AgentOS` instance and serve it as normal:

```python a2a_agentos.py
from agno.agent import Agent
from agno.os import AgentOS
from agno.os.interfaces.a2a import A2A

agent = Agent(name="My Agno Agent")

agent_os = AgentOS(
    agents=[agent],
    a2a_interface=True,
)
app = agent_os.get_app()

if __name__ == "__main__":
    agent_os.serve(app="a2a:app", reload=True)
```

By default all the Agents, Teams and Workflows in the AgentOS will be exposed via `A2A`.

You can also specify which Agents, Teams and Workflows to expose:

```python a2a-interface-initialization.py
from agno.agent import Agent
from agno.os import AgentOS
from agno.os.interfaces.a2a import A2A

agent = Agent(name="My Agno Agent")

# Initialize the A2A interface specifying the agents to expose
a2a = A2A(agents=[agent])

agent_os = AgentOS(
    agents=[agent],
    interfaces=[a2a], # Pass the A2A interface to the AgentOS using the `interfaces` parameter
)
app = agent_os.get_app()

if __name__ == "__main__":
    agent_os.serve(app="a2a-interface-initialization:app", reload=True)
```

## A2A API

Using the A2A interface, you can run your Agents, Teams and Workflows passing A2A compatible requests. You will also receive A2A compatible responses.

See the [A2A API reference](/reference-api/schema/a2a/stream-message) for more details.

## Developer Resources

- View [AgentOS Reference](/reference/agent-os/agent-os)
- View [A2A Documentation](https://a2a-protocol.org/latest/)
- View [Examples](/examples/agent-os/interfaces/a2a)
- View [Cookbook](https://github.com/agno-agi/agno/tree/main/cookbook/agent_os/interfaces/a2a)